package coder.taiji.test.springnetty.udp.dto;

import java.net.InetSocketAddress;

/**
 * describe:基础的解码信息
 *
 * @author helloworldyu
 * @date 2018/6/22
 */
public class BaseUdpInfo {
	private InetSocketAddress source;
	private long recvTime;

	/**
	 * 解码的结果
	 */
	private boolean succ;
	private String errorInfo;


	public InetSocketAddress getSource() {
		return source;
	}

	public void setSource(InetSocketAddress source) {
		this.source = source;
	}

	public long getRecvTime() {
		return recvTime;
	}

	public void setRecvTime(long recvTime) {
		this.recvTime = recvTime;
	}

	public boolean isSucc() {
		return succ;
	}

	public void setSucc(boolean succ) {
		this.succ = succ;
	}

	public String getErrorInfo() {
		return errorInfo;
	}

	public void setErrorInfo(String errorInfo) {
		this.errorInfo = errorInfo;
	}

	@Override
	public String toString() {
		return "BaseUdpInfo{" +
				"source=" + source +
				", recvTime=" + recvTime +
				", succ=" + succ +
				", errorInfo='" + errorInfo + '\'' +
				'}';
	}
}